<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body onload="previewImg(1);">
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="12">

<@p.td colspan="1" width="50" label="车型名称" >${carType.typeName!}</@p.td>
<@p.td colspan="1" width="50" label="shopInfo.shopName" >${carType.shop.shopName!}</@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="年款" >${carType.year!}</@p.td>
<@p.td colspan="1" width="50" label="品牌" >${carType.carBrand.brandName!}</@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="指导价" >${carType.priceGuide!}</@p.td>
<@p.td colspan="1" width="50" label="车系" >${carType.carSeries.seriesName!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="经销商报价" >${carType.priceSale!}</@p.td>
<@p.td colspan="1" width="50" label="排量" >${carType.disp!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="档位个数" >${carType.gearNum!}</@p.td>
<@p.td colspan="1" width="50" label="变速箱" >${carType.gearbox!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="排序号" >${carType.orderNum!}</@p.td>
<@p.td colspan="1" width="50" label="车系亮点" >${carType.content!}</@p.td><@p.tr/>


<!-- 批量上传 开始 -->
<@p.td label="批量上传" colspan="2" noHeight="true">
<div>
<#list carType.carImgs as p>
<table id="picTable${p_index+3}" border="0" style="float:left;">
<tr>
	<td>URL:
		<div>${p.imgUrl} </div><br/>
		图片名：
		<div>${p.imgName!}</div>
	</td>
	<td><img id="preImg${p_index+3}" src="${p.imgUrl}" alt="<@s.m "imageupload.preview"/>" noResize="true" style="width:110px;height:110px;background-color:#ccc;border:1px solid #333"/></td>
</tr>
</table>
<input type="hidden" name="oldpicPaths" value="${p.imgUrl!}"/>
</#list>
<script type="text/javascript">
var picIndex = ${carType.carImgs?size} + 3;
var picTpl = $.format($("#picTable").val());
function addPicLine() {
	$('#picBefore').before(picTpl(picIndex++));
}
</script>
</@p.td>
<!-- 批量上传结束 -->
</@p.form>
</div>
</body>
</html>